package controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.portlet.ModelAndView;
import po.User;
import service.UserService;
import vo.UserCustom;

import java.util.List;

/**
 * Created by apple on 2017/10/11.
 */

@Controller
public class UserController {

    /*@Autowired
    private UserService userService;

    @RequestMapping("/queryUser.do")
    @ResponseBody
    public String queryUser() throws Exception {
        List<User> userCustomList = userService.selectAllUsers();
        ModelAndView modelAndView = new ModelAndView();
        System.out.println(userCustomList);
//        modelAndView.addObject("userList",userCustomList);
//        modelAndView.setViewName("views/queryUser.jsp");
//        return modelAndView;
        return userCustomList.toString();
    }
*/


}
